<?php
$url='.';
    include './c/config.php';
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqli->error);}
    $query=$mysqli->query("SELECT * FROM `ti` where nianji=3 and step=1   ");
    $i=1;
    $hide='hide';
    while ($list=$query->fetch_array()) {
        
    ?> 
<div class="yib-bt yb1-bt<?php echo $i?> <?php echo $hide; ?>"><?php echo $list['title']; ?></div>
<div class="yib-abcd yb1-abcd yb1-t<?php echo $i?> <?php echo $hide; ?>">
<div class="yib-li"><img class="dx-li-ico dx-li-a" src="<?php echo $url; ?>/img/li-a.png" /> <span><?php echo $list['da']; ?></span></div>
<div class="yib-li"><img class="dx-li-ico dx-li-b" src="<?php echo $url; ?>/img/li-b.png" /> <span><?php echo $list['db']; ?></span></div>
<div class="yib-li"><img class="dx-li-ico dx-li-c" src="<?php echo $url; ?>/img/li-c.png" /> <span><?php echo $list['dc']; ?></span></div>
<div class="yib-li"><img class="dx-li-ico dx-li-d" src="<?php echo $url; ?>/img/li-d.png" /> <span><?php echo $list['dd']; ?></span></div>
<div class="dx-dan">
<img class="dx-a dx-a1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-a dx-a2" src="<?php echo $url; ?>/img/a.png" /><img class="dx-b dx-b1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-b dx-b2" src="<?php echo $url; ?>/img/b.png" />
<img class="dx-c dx-c1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-c dx-c2" src="<?php echo $url; ?>/img/c.png" /><img class="dx-d dx-d1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-d dx-d2" src="<?php echo $url; ?>/img/d.png" />
</div>
</div><?php 
        $i++;
     } 
?>


<?php
//第二部分
$query=$mysqli->query("SELECT * FROM `ti` where nianji=3 and step=2  ");
$i=1;
$hide='hide';
while ($list=$query->fetch_array()) {
    
?> 
<div class="yib-bt yb2-bt<?php echo $i?> <?php echo $hide; ?>"><?php echo $list['title']; ?></div>
<div class="yib-abcd yb2-abcd yb2-t<?php echo $i?> <?php echo $hide; ?>">
<div class="yib-li"><img class="dx-li-ico dx-li-a" src="<?php echo $url; ?>/img/li-a.png" /> <span><?php echo $list['da']; ?></span></div>
<div class="yib-li"><img class="dx-li-ico dx-li-b" src="<?php echo $url; ?>/img/li-b.png" /> <span><?php echo $list['db']; ?></span></div>
<div class="yib-li"><img class="dx-li-ico dx-li-c" src="<?php echo $url; ?>/img/li-c.png" /> <span><?php echo $list['dc']; ?></span></div>
<div class="yib-li"><img class="dx-li-ico dx-li-d" src="<?php echo $url; ?>/img/li-d.png" /> <span><?php echo $list['dd']; ?></span></div>
  <div class="dx-dan">
   <img class="dx-a dx-a1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-a dx-a2" src="<?php echo $url; ?>/img/a.png" /><img class="dx-b dx-b1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-b dx-b2" src="<?php echo $url; ?>/img/b.png" />
   <img class="dx-c dx-c1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-c dx-c2" src="<?php echo $url; ?>/img/c.png" /><img class="dx-d dx-d1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-d dx-d2" src="<?php echo $url; ?>/img/d.png" />
  </div>
</div><?php 
    $i++;
 } 
?>

<?php
//第三部分
$query=$mysqli->query("SELECT * FROM `ti` where nianji=3 and step=3   ");
$i=1;
$hide='hide';
while ($list=$query->fetch_array()) {
    
?> 
<div class="yib-bt yb3-bt<?php echo $i?> <?php echo $hide; ?>"><?php echo $list['title']; ?></div>
<div class="yib-abcd yb3-abcd yb3-t<?php echo $i?> <?php echo $hide; ?>">
<div class="yib-li"><img class="dx-li-ico dx-li-a" src="<?php echo $url; ?>/img/li-a.png" /> <span><?php echo $list['da']; ?></span></div>
<div class="yib-li"><img class="dx-li-ico dx-li-b" src="<?php echo $url; ?>/img/li-b.png" /> <span><?php echo $list['db']; ?></span></div>
<div class="yib-li"><img class="dx-li-ico dx-li-c" src="<?php echo $url; ?>/img/li-c.png" /> <span><?php echo $list['dc']; ?></span></div>
<div class="yib-li"><img class="dx-li-ico dx-li-d" src="<?php echo $url; ?>/img/li-d.png" /> <span><?php echo $list['dd']; ?></span></div>
  <div class="dx-dan">
   <img class="dx-a dx-a1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-a dx-a2" src="<?php echo $url; ?>/img/a.png" /><img class="dx-b dx-b1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-b dx-b2" src="<?php echo $url; ?>/img/b.png" />
   <img class="dx-c dx-c1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-c dx-c2" src="<?php echo $url; ?>/img/c.png" /><img class="dx-d dx-d1" src="<?php echo $url; ?>/img/h.png" /><img class="dx-d dx-d2" src="<?php echo $url; ?>/img/d.png" />
  </div>
</div><?php 
    $i++;
 } 
?>